#include <head.h>

void * Func_pthread_1(void * arg)
{
    int val = *((int *)arg);
    printf("输入的数值 = %d\n", val);
}

typedef struct stu
{
    char name[123];
    int id;
}stu;

void * Func_pthread_2(void *arg)
{
    stu stu_1 = *((stu *)arg);
    printf("stu = %s %d\n" , stu_1.name , stu_1.id);
}

int main(int argc, char const *argv[])
{
    pthread_t tid;

    int val_1 = 10;
    pthread_create(&tid ,NULL ,Func_pthread_1 ,(void *)&val_1);
    
    pthread_join(tid,NULL);

    stu stu_1 = {.name = "张三" , .id = 10};
    pthread_create(&tid ,NULL , Func_pthread_2 , (void *)&stu_1);

    pthread_join(tid ,NULL);
    return 0;
}